package com.acme;

import org.json.JSONArray;
import org.json.JSONException;

public class Awards {

	public static String[] getAwards(String JSONAwards){
		String[] awards = null;
		
		try {
			JSONArray array = new JSONArray(JSONAwards);
			awards = new String[array.length()];
			for (int index = 0; index < array.length(); index++){
				awards[index] = array.getJSONObject(index).getString("award_title");
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
		return awards;
	}
}
